package email

import (
	"github.com/komari-monitor/komari/internal/messageSender/factory"
)

type Addition struct {
	Host         string `json:"host" required:"true"`
	Port         int    `json:"port" required:"true" default:"587"`
	Username     string `json:"username"`
	Password     string `json:"password"`
	Sender       string `json:"sender"`
	Receiver     string `json:"receiver"`
	UseSSL       bool   `json:"use_ssl" default:"false"`
	UseLoginAuth bool   `json:"use_login_auth" default:"false" help:"Use LOGIN authentication method instead of PLAIN. Enable this if you encounter authentication errors with Microsoft (Outlook/Office365), NetEase (163.com), or other email providers"`
}

func init() {
	factory.RegisterMessageSender(func() factory.IMessageSender {
		return &EmailSender{}
	})
}
